package com.lwh.service;

import com.aliyuncs.exceptions.ClientException;
import com.lwh.entity.Permission;
import com.lwh.entity.Role;
import com.lwh.entity.User;

import java.util.List;

public interface UserService {

    User findByUser(User user);

    User findByName(String userName);

    /**
     * @Description 发送短信
     **/
    String sendCode(String phone) throws ClientException;

    User findByPhone(String phone,String code);

    List<Role> findRoleByUser(String userName);

    List<Permission> findPermByUser(String id);
}
